package com.smart.community.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

   /**
    * @author : 子未语
    * @date : 2024/1/14 10:05
    */

/**
 * 用户信息
 * @author 子未语
 */
@Data
@TableName(value = "sys_user")
public class SysUser {
    /**
     * 用户信息id
     */
    @TableId(value = "sys_user_id", type = IdType.AUTO)
    private Integer sysUserId;

    /**
     * 用户信息
     */
    @TableField(value = "sys_user_name")
    private String sysUserName;

    /**
     * 用户登录账户
     */
    @TableField(value = "login_name")
    private String loginName;

    /**
     * 用户登录密码
     */
    @TableField(value = "login_password")
    private String loginPassword;

    /**
     * 用户类型
     */
    @TableField(value = "user_type_id")
    private Integer userTypeId;

    /**
     * 部门ID
     */
    @TableField(value = "dept_type_id")
    private Integer deptTypeId;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 1删除 0正常
     */
    @TableLogic
    @TableField(value = "del_status")
    private Integer delStatus;

    public static final String COL_SYS_USER_ID = "sys_user_id";

    public static final String COL_SYS_USER_NAME = "sys_user_name";

    public static final String COL_LOGIN_NAME = "login_name";

    public static final String COL_LOGIN_PASSWORD = "login_password";

    public static final String COL_USER_TYPE_ID = "user_type_id";

    public static final String COL_DEPT_TYPE_ID = "dept_type_id";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_DEL_STATUS = "del_status";
}